<cfcomponent displayname="ExternalScript" extends="ScriptWriter.ElementBase" output="no">
	
	
	<!--- init() --->
	<cffunction name="init" access="public" returntype="ScriptWriter.ElementBase">
		<cfargument name="path" type="string" required="no" default="" />
		<cfargument name="src" type="string" required="no" default="" />
		<cfargument name="minify" type="boolean" required="no" default="false" />
		<cfargument name="outputPath" type="string" required="no" default="" />
		<cfargument name="compressor" type="any" required="no" default="" />
		
		<cfset super.init(
			sourcePath=arguments.path, 
			src=arguments.src, 
			minify=arguments.minify, 
			outputPath=arguments.outputPath, 
			compressor=arguments.compressor) 
		/>
		
		<cfset setExternalOutputFormat("<script type=""text/javascript"" src=""#getPreferredPath()#""></script>") />
		<cfset setInlineOutputFormat("<script type=""text/javascript"">#getSourceFull()#</script>") />
		<cfreturn this />
	</cffunction>
	
</cfcomponent>